package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingMapper {
    Integer findCountByOrderDate(@Param("orderDate") Date orderDate);
    void updateNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);

    List<Map> findOrderSettingByMonth(@Param("dateBegin") String dateBegin, @Param("dateEnd") String dateEnd);

    OrderSetting findByOrderDate(@Param("date") Date date);

    void updateReservationsByOrderDate(@Param("date") Date date);

    //定时任务  清理当月最后一天前的预约设置
    void clearOrderSettingBeforeDate(@Param("date") String lastDayOfThisMonth);
    //List<OrderSetting> findOrderSettingByMonth(@Param("dateBegin")String dateBegin,@Param("dateEnd") String dateEnd);
}
